﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using SingleUserMall.Authorization.Users;
using SingleUserMall.Items;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Users.VO
{
    [AutoMapFrom(typeof(UserWalletDetail))]
    public class UserWalletDetailVO : EntityDto<long>
    {
        /// <summary>
        /// 钱包金额改变数目
        /// </summary>
        public decimal WalletExchangeAmount { get; set; }
        /// <summary>
        /// 钱包金额改变原因
        /// </summary>
        public string WalletExchangeReason { get; set; }
        /// <summary>
        /// 钱包金额改变时间
        /// </summary>
        public DateTime? WalletExchangeTime { get; set; }
        /// <summary>
        /// 钱包收支类型
        /// </summary>
        public UserWalletType WalletType { get; set; }
        /// <summary>
        /// 收支类型描述
        /// </summary>
        public string WalletTypeDes => WalletType.GetDescription();
    }
}
